package com.webshop.JavaBean;

/**
 * CREATE TABLE `address`  (
 `ID` int(20) NOT NULL AUTO_INCREMENT,
 `user` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `addressee` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 PRIMARY KEY (`ID`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

 */
public class Address {
    int ID;
    String user;//下单的人
    String address;//地址
    String phone;//电话号
    String addressee;//收货人



    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddressee() {
        return addressee;
    }

    public void setAddressee(String addressee) {
        this.addressee = addressee;
    }

    public Address() {
        super();
    }

    public Address(String ID ,String user, String address, String phone, String addressee) {
        this.user = user;
        this.ID = Integer.parseInt(ID);
        this.address = address;
        this.phone = phone;
        this.addressee = addressee;
    }

    public Address(String user, String address, String phone, String addressee) {
        this.user = user;
        this.address = address;
        this.phone = phone;
        this.addressee = addressee;
    }
    @Override
    public String toString() {
        return "Address{" +
                "ID=" + ID +
                ", user='" + user + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", addressee='" + addressee + '\'' +
                '}';
    }
}
